package com.example.taco_cloud.taco.iocContainer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class MovieConfiguration {

    @Bean
    @Primary
    public MovieCatalog firstMovieCatalog() {
        MovieCatalog mc = new MovieCatalog();
        mc.name = "a";
        return mc;
    }

    @Bean
    public MovieCatalog secondMovieCatalog() {
        MovieCatalog mc = new MovieCatalog();
        mc.name = "b";
        return mc;
    }
}
